package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.DormRoom;
import com.xmy.cultivate.entity.DormRoomMember;
import com.xmy.cultivate.mapper.DormRoomMemberMapper;
import com.xmy.cultivate.service.IDormRoomMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 宿舍成员 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-02
 */
@Service
public class DormRoomMemberServiceImpl extends ServiceImpl<DormRoomMemberMapper, DormRoomMember> implements IDormRoomMemberService {
    @Autowired
    DormRoomMemberMapper dormRoomMemberMapper;

    @Override
    public IPage<DormRoomMember> getDormRoomMemberList(IPage<DormRoomMember> page, String roomId) {
        return dormRoomMemberMapper.getDormRoomMemberList(page, roomId);
    }

    @Override
    public List<DormRoomMember> getDormRoomMemberListBySexType (String sexType, String roomIds) {
        return dormRoomMemberMapper.getDormRoomMemberListBySexType(sexType, roomIds);
    }

}
